import Vue from "vue";
import App from "./App.vue";

Vue.config.productionTip = false;

import { Button } from "element-ui";
Vue.use(Button);

// 引入store实例化对象
import store from "@/store";

new Vue({
  store: store, //每个组件可以通过this.$store去访问store实例化对象
  beforeCreate() {
    Vue.prototype.$bus = this; //安装全局事件总线
  },
  render: (h) => h(App),
}).$mount("#app");
